//
//  NormalButton.m
//  Honda
//
//  Created by Wang.Xinlei on 4/23/13.
//  Copyright (c) 2013 HeninHoo. All rights reserved.
//

#import "NormalButton.h"

@implementation NormalButton

- (void)awakeFromNib {
    self.backgroundColor = [UIColor clearColor];
    
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[[UIImage imageNamed:@"button_highlighted"] resizableImageWithCapInsets:UIEdgeInsetsMake(5, 5, 5, 5)
                                                                                        resizingMode:UIImageResizingModeStretch]
                    forState:UIControlStateNormal];
}

@end



@implementation WhiteNormalButton

- (void)awakeFromNib {
    self.backgroundColor = [UIColor clearColor];
    self.titleLabel.font = [UIFont systemFontOfSize:18];
    [self setTitleColor:[UIColor colorWithWhite:(0xa5 / 255.0) alpha:1] forState:UIControlStateNormal];
    [self setBackgroundImage:[[UIImage imageNamed:@"button_normal"] resizableImageWithCapInsets:UIEdgeInsetsMake(5, 5, 5, 5)
                                                                                        resizingMode:UIImageResizingModeStretch]
                    forState:UIControlStateNormal];
}

@end
